/*    */ package com.zimbra.cs.ldap.unboundid;
/*    */ 
/*    */ import com.unboundid.ldap.sdk.SearchResult;
/*    */ import com.unboundid.ldap.sdk.SearchResultEntry;
/*    */ import com.zimbra.cs.ldap.LdapException;
/*    */ import com.zimbra.cs.ldap.ZSearchResultEntry;
/*    */ import com.zimbra.cs.ldap.ZSearchResultEnumeration;
/*    */ import java.util.Iterator;
/*    */ import java.util.List;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class UBIDSearchResultEnumeration
/*    */   implements ZSearchResultEnumeration
/*    */ {
/*    */   SearchResult searchResult;
/*    */   Iterator<SearchResultEntry> entriesIter;
/*    */   
/*    */   UBIDSearchResultEnumeration(SearchResult searchResult)
/*    */   {
/* 34 */     this.searchResult = searchResult;
/* 35 */     this.entriesIter = searchResult.getSearchEntries().iterator();
/*    */   }
/*    */   
/*    */   public void close()
/*    */     throws LdapException
/*    */   {}
/*    */   
/*    */   public boolean hasMore()
/*    */     throws LdapException
/*    */   {
/* 45 */     return this.entriesIter.hasNext();
/*    */   }
/*    */   
/*    */   public ZSearchResultEntry next() throws LdapException
/*    */   {
/* 50 */     SearchResultEntry searchResultEntry = (SearchResultEntry)this.entriesIter.next();
/* 51 */     return new UBIDSearchResultEntry(searchResultEntry);
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/ldap/unboundid/UBIDSearchResultEnumeration.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */